<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>window对象</title>
</head>
<body>
<script>
   // window.confirm("显示内容1");
   var w2= window.open("window2.html","abc",
           "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
   w2.location="index.html";
   setTimeout("w2.close()",2000);
//    var a=1;
</script>
</body>
</html>